//
//  UIButton+Extension.m
//  dongbo
//
//  Created by 葛殿宏 on 16/2/19.
//  Copyright © 2016年 arenacloud. All rights reserved.
//

#import "UIButton+Extension.h"

@implementation UIButton(ImageTitleCentering)

-(void) centerButtonAndImageWithSpacing:(CGFloat)spacing {
    self.imageEdgeInsets = UIEdgeInsetsMake(0, 0, 0, spacing);
    self.titleEdgeInsets = UIEdgeInsetsMake(0, spacing, 0, 0);
}

@end